package com.citycloud.ccuap.tc.admin.dto;


import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mybatis.annotations.Column;
import org.springframework.data.mybatis.annotations.Condition;
import org.springframework.data.mybatis.annotations.Entity;
import org.springframework.data.mybatis.annotations.Id;
import org.springframework.data.mybatis.annotations.Id.GenerationType;

/**
 * 项目（站点）菜单和角色关联对象
 *
 * @author sufeng
 */
@Data
@NoArgsConstructor
@Entity(table = "sys_app")
public class SysAppDto {
    private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
    @Id(strategy = GenerationType.AUTO)
    @Column(name = "app_id")
    @Condition
    private Long appId;
    /**
     * appName
     */
    @Column(name = "app_name")
    @Condition
    private String appName;
    /**
     * 应用类型，0-web应用，1-app应用
     */
    @Column(name = "app_type")
    @Condition
    private Integer appType;
    /**
     * 应用描述
     */
    @Column(name = "app_describe")
    @Condition
    private String appDescribe;
    /**
     * 应用logo
     */
    @Column(name = "app_logo")
    @Condition
    private String appLogo;
    /**
     * 关联的oauth2的应用clientId
     */
    @Column(name = "client_id")
    @Condition
    private String clientId;
    private String clientSecret;
    private String webServerRedirectUri;
    private String secret;
    /**
     * 资源id
     */
    private String resource;
    /**
     * 授权模式
     */
    private String authorizedGrantTypes;
}